import request from '@/request'

// 用户信息
export const apiUserinfo = () => request.get('/v1/sysUser/userInfo')

// 用户修改密码
export const apiChangePassword = (data) =>
  request.post('/v1/sysUser/modifyPass', data)

// 用户退出登录
export const apiUserLogout = (data) => request.post('/v1/logout', data)

// wx登录返回手机号
export const apiUserPhone = (data) =>
  request.post('/v1/weChat/findUserPhone', data)

// wx登录
export const apiwxLogin = (data) => request.post('/v1/weCharAppletsLogin', data)

// 修改资料
export const updateProxy = (data) => request.post('/v1/proxy/updateProxy', data)

// 填写邀请码
export const writeInvitationCode = (data) =>
  request.post('/v1/proxy/writeInvitationCode', data)

// 获取分销配置
export const selectLevelConfig = (params) =>
  request.get('/v1/glassesLevelConfig/selectLevelConfig', {
    params
  })
// 根据手机号获取学生列表
export const getStudentByTel = (data) =>
  request.post('/v1/getStudentsByPhoneNum', data)
// 提现接口
export const Payouts = (data) =>
  request.postForm('/v1/wechatEntpayForm/transfer', data)
// 获取提现记录
export const getWithdrawalRecord = (params) =>
  request.get('/v1/wechatEntpayForm/getWithdrawalRecord', { params })
// 获取提现详情
export const getTransBat = (params) =>
  request.get('/v1/wechatEntpayForm/getTransBat', { params })
